//
//  TCPManage.h
//  AIM
//
//  Created by user10 on 2017/8/30.
//  Copyright © 2017年 user10. All rights reserved.
//

#import <Foundation/Foundation.h>
@protocol TCPManageDelegate <NSObject>
- (void)refresh;

@end

@interface TCPManage : NSObject

@property (nonatomic, weak) id delegate;

+ (instancetype)shareTCPManage;
- (void)connect:(NSString *)type;
- (void)writeData:(NSData *)data;
- (void)reciveText:(NSString *)str;
- (void)reciveData:(NSData *)data;
- (void)getName:(NSString *)name;
@end
